home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Sharing Fun! I Know My Savior Lives / Sunday Savers: Sharing Fun! I Know My Savior Lives.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1268.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  1.8 KB  |  81 lines

  1. 46
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. DisableKeys 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baDisableKeys allows you to disable key presses.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baDisableKeys( Disable , WindowHandle )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. Integer, Integer. 
  36. --- RECORDSEPARATOR ---
  37. WindowHandle is the handle of the window to disable. To disable the keys on all 
  38. --- RECORDSEPARATOR ---
  39. windows, use 0. 
  40. --- RECORDSEPARATOR ---
  41. If Disable is true, key presses will be disabled. 
  42. --- RECORDSEPARATOR ---
  43. If Disable is false, key presses will be enabled again - the WindowHandle argument 
  44. --- RECORDSEPARATOR ---
  45. is ignored.
  46. --- RECORDSEPARATOR ---
  47.  
  48. --- RECORDSEPARATOR ---
  49. Returns:
  50. --- RECORDSEPARATOR ---
  51.  
  52. --- RECORDSEPARATOR ---
  53. Integer. 
  54. --- RECORDSEPARATOR ---
  55. When disabling the keys, returns 1 if the function was successful, otherwise 0. 
  56. --- RECORDSEPARATOR ---
  57. When enabling the keys, will always return 1.
  58. --- RECORDSEPARATOR ---
  59.  
  60. --- RECORDSEPARATOR ---
  61. Examples:
  62. --- RECORDSEPARATOR ---
  63.  
  64. --- RECORDSEPARATOR ---
  65. Director: 
  66. --- RECORDSEPARATOR ---
  67. set KeysOff = baDisableKeys( true , baWinHandle() ) 
  68. --- RECORDSEPARATOR ---
  69. Authorware: 
  70. --- RECORDSEPARATOR ---
  71. KeysOff := baDisableKeys( true , baWinHandle() )
  72. --- RECORDSEPARATOR ---
  73.  
  74. --- RECORDSEPARATOR ---
  75. Notes:
  76. --- RECORDSEPARATOR ---
  77.  
  78. --- RECORDSEPARATOR ---
  79. If you disable the keys using this function, make sure that you enable the function 
  80. --- RECORDSEPARATOR ---
  81. before your application quits.